package com.zbkj.service.dao;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zbkj.common.model.AiFittingCategory;
import org.apache.ibatis.annotations.Param;

/**
 * <p>
 * 专题分类表 Mapper 接口
 * </p>
 *
 * @author keNan
 * @since 2025-06-04
 */
public interface AiFittingCategoryDao extends BaseMapper<AiFittingCategory> {

    /**
     * 根据三级分类id查询二级分类
     *
     * @param aiFittingCategoryId
     * @return
     */
    AiFittingCategory selectTwoLevelByThreeLevelId(@Param("aiFittingCategoryId") Integer aiFittingCategoryId);

    /**
     * 根据第三级分类id查询一级分类id
     *
     * @param aiFittingCategoryId
     * @return
     */
    Integer selectCategoryIdByAiFittingCategoryId(@Param("aiFittingCategoryId") Integer aiFittingCategoryId);

    /**
     * 查询出一级分类id的名称,根据名称判断跑男模特还是女模特
     *
     * @param categoryId
     * @return
     */
    String getNameByCategoryId(@Param("categoryId") Integer categoryId);
}
